
#import <Foundation/Foundation.h>
#import <netinet/in.h>
#import <sys/socket.h>

// #import "SynergyHelper.h"


@interface ClientController : NSObject <NSNetServiceBrowserDelegate,NSNetServiceDelegate> {

    BOOL client;
    NSTask *synergy2;
    BOOL isConnected;
    NSNetServiceBrowser *browser;
    NSNetService *connectedService;
    NSMutableArray *services;
    struct sockaddr *addr;
    // removed following dependencies
    // NSArrayController *servicesController;
    // SynergyHelper *synergy;
}

@property (readonly, retain) NSMutableArray *services;
@property (readonly, assign) BOOL isConnected;

-(void)startClient;

-(void)stopClient;

-(void)search;

@end
